儿童版体质辨识 (3-6岁)
POST
https://www.tizhicm.com/open-api/preschooler/identify
1.请对数据进行整合,请将全部的题目数据作为参数,缺少题目或选项将无法得到辨识结果!
2.题目分数需要按照量表返回的标准分数进行赋值,如果高于上限分数或者低于下限分数将不能进行辨识。
3.体质辨识是根据需求人真实的身体感受情况所分析得到的结果,所以为保证辨识的准确性请提示用户按照最近一年的身体实际感受来进行量表的填写
Query 参数
参数 | 类型 | 必填 | 说明 |
---|---|---|---|
access_token | string | 是 | 调用凭证 |
Body 参数 (application/json)
参数 | 类型 | 必填 | 说明 |
---|---|---|---|
options | json | 是 | (题目code做key【字符类型】得分分数做value【int类型】) |
user | object | 否 | 用户参数体 |
age | int | 否 | 年龄 |
gender | string | 否 | 性别 (male,female) |
请求示列
{
"user":{
"age":"12",
"gender":"male"
},
"options":{
"CP01": 2,
"CP02": 2,
"CP03": 3,
"CP04": 2,
"CP05": 3,
"CP06": 2,
"CP07": 1,
"CP08": 1,
"CP09": 3,
"CP10": 2,
"CP11": 2,
"CP12": 2,
"CP13": 3,
"CP14": 1,
"CP15": 2,
"CP16": 2,
"CP17": 2,
"CP18": 2,
"CP19": 3,
"CP20": 3,
"CP21": 3,
"CP22": 3,
"CP23": 3,
"CP24": 1,
"CP25": 2,
"CP26": 3,
"CP27": 2,
"CP28": 3,
"CP29": 2,
"CP30": 2,
"CP31": 2,
"CP32": 3,
"CP33": 3,
"CP34": 3,
"CP35": 3,
"CP36": 1,
"CP37": 3,
"CP38": 2,
"CP39": 2,
"CP40": 3,
"CP41": 2,
"CP42": 1,
"CP43": 1,
"CP44": 1,
"CP45": 1,
"CP46": 1,
"CP47": 1,
"CP48": 1,
"CP49": 2,
"CP50": 2,
"CP51": 1,
"CP52": 3,
"CP53": 2,
"CP54": 2,
"CP55": 2,
"CP56": 2,
"CP57": 3,
"CP58": 1,
"CP59": 2,
"CP60": 5,
"CP61": 4,
"CP62": 1
}}
返回参数
参数 | 类型 | 说明 |
---|---|---|
errcode | int | 返回码 |
errmsg | string | 返回装填描述 |
result | object | 返回信息 |
result.a_score | float | 平和体质得分 |
result.b_score | float | 气虚质得分 |
result.c_score | float | 阳虚质得分 |
result.d_score | float | 阴虚质得分 |
result.e_score | float | 痰湿体质得分 |
result.f_score | float | 湿热质得分 |
result.g_score | float | 血瘀质得分 |
result.h_score | float | 气郁质得分 |
result.i_score | float | 特禀质得分 |
result.constitution.level | int | 体质级别 2:倾向是,1:是 0 否 |
result.constitution.type | str | 主体质名称 |
result.created_at | int | 辨识时间 (毫秒值) |
result.other_constitution.level | int | 兼夹体质级别 体质级别 1-是,2-倾向是 |
constitution_state | str | 'success' 正常辨识体质; 'unknown' 未能辨识体质 |
result.other_constitution.type | int | 兼夹体质名称 |
result.version | int | 版本 |
- 其中返回的体质特殊代码编号如下所示 (A = 平和质 B = 气虚质 C = 阳虚质 D = 阴虚质 E = 痰湿质 F = 湿热质 G = 血瘀质 H = 气郁质 I = 特禀质)
- 体质level代表这个体质的级别,当显示时需要用该数据作为依据
返回实例
{
"errcode": 0,
"errmsg": "string",
"a_score": 0,
"b_score": 0,
"c_score": 0,
"constitution": {
"level": 0,
"type": "string"
},
"created_at": 0,
"d_score": 0,
"e_score": 0,
"f_score": 0,
"g_score": 0,
"h_score": 0,
"i_score": 0,
"other_constitution": [
{
"level": 0,
"type": "string"
}
],
"version": "string"
}